package com.sky.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Component
@ConfigurationProperties(prefix = "sky.alioss") //读取配置文件，位置是application.yml的sky.alioss
@Data
public class AliOssProperties {
    //这四个属性的值由application应用配置文件输入，之后封装到AliOssProperties通过OssConfiguration配置类导入给AliOssUtil工具类
    private String endpoint;
    private String accessKeyId;
    private String accessKeySecret;
    private String bucketName;

}
